/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package trivia;

import java.util.Vector;


/**
 *
 * @author mourawi
 */
public class Subjects {

    private Vector subjects;

    public Subjects() {
        this.subjects = new Vector();
    }

    public void addSubject(Subject subject) {
        subjects.addElement(subject);
    }

    public int getSubjectsNumber() {
        return subjects.size();
    }

    public Subject getSubject(int index) {
        return (Subject)subjects.elementAt(index);
    }
}
